<?php require('data/dbcon.php'); ?>
<?php require('data/functions.php'); ?>
<?php
if( empty($_POST) ) {
	header("location: install_launch.php?error=1");
}
if( empty($_POST['login']) ) {
	header("location: install_launch.php?error=2");
}
if( empty($_POST['pass']) ) {
	header("location: install_launch.php?error=2");
}
if( $_POST['pass'] != $_POST['pass2'] ) {
	header("location: install_launch.php?error=3");
}
$password = md5($_POST['pass']);
$insertadmin = mysql_query('INSERT INTO v2_admin (id, login, password, stat, level) VALUES (0, ' . sanisql($_POST['login']) . ', ' . sanisql($password) . ', "1", "1")');

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">@import url('css/body.css'); </style>
<title>Welcome to Winn GuestBook <?=$version; ?></title>
</head>

<body>
<div id="login">
	
    <h2>Install <?=$version; ?> - step 4</h2>
    <h2>DONE!</h2>
    <p>Hey! You’re all done with the install; things went smooth if you’re looking at this screen. Be sure to visit winn.ws for the latest updates on this guestbook.</p>
    <p>One last task for you... Because this is a HUGE security issue for you and your site, you need to DELETE the following files for good: “install.php”, “install_data.php”, “install_launch.php”, and “install_done.php”. Once you’re done you can login to your guestbook <a href="admin/index.php">here.</a></p>
    
    
</div>
</body>
</html>
